package biz.inspeed.test.apachcommon;

import org.apache.commons.lang3.builder.ToStringBuilder;

public class CatPO {
	private String name = "Hello";
	private int age = 4;
	
	public CatPO(){}
	
	public CatPO(String name,int age){
		this.name = name;
		this.age = age;
	}
	
	@Override
	public String toString() {
		return new ToStringBuilder(this).append("name", this.name)
		.append("age",this.age)
		.toString();
	}

	public String getName() {
		System.out.println("---------getName---------");
		return name;
	}

	public int getAge() {
		System.out.println("---------getAge---------");
		return age;
	}

	public void setName(String name) {
		System.out.println("---------setName---------");
		this.name = name;
	}

	public void setAge(int age) {
		System.out.println("---------setAge---------");
		this.age = age;
	}
}
